﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using IBatisNet.DataMapper.Configuration;
using IBatisNet.DataMapper;

using VehicleManagement.Codes;
using VehicleManagement.Models;
using VehicleManagement.ControllersServices;


namespace VehicleManagement.Controllers
{
    [CustomerAuthorize(Roles = "管理员")]
    public class AdminInfoController : Controller
    {
        AdminServices adminServices = new AdminServices();

        //
        // GET: /AdminInfo/

        public ActionResult Index(int id)
        {
                return View(adminServices.GetAdminInfo(id));
        }

        //
        // GET: /AdminInfo/GetAdminInfo/1

        /// <summary>
        /// 获取管理员信息(如管理员个人中心)
        /// </summary>
        /// <param name="id">管理员ID</param>
        /// <returns></returns>
        public ActionResult GetAdminInfo(int id)
        {
            return View(adminServices.GetAdminInfo(id));
        }
    }
}
